<template>
  <div class="app">
    <div class="list">
    <ul>
      <li><img src="../assets/svg/运动-57.svg" alt=""><span>滑雪</span></li>
      <li><img src="../assets/svg/运动-65.svg" alt=""><span>冲浪</span></li>
      <li><img src="../assets/svg/运动-83.svg" alt=""><span>击剑</span></li>
      <li><img src="../assets/svg/运动-92.svg" alt=""><span>跳绳</span></li>
      <li><img src="../assets/svg/运动-104.svg" alt=""><span>体操</span></li>
      <li><img src="../assets/svg/运动-25.svg" alt=""><span>射箭</span></li>
      <li><img src="../assets/svg/运动-48.svg" alt=""><span>舞蹈</span></li>
      <li><img src="../assets/svg/运动-55.svg" alt=""><span>跑步</span></li>
    </ul>
  </div>
  </div>
</template>
<script>
export default {

}
</script>
<style lang="less" scoped>
.app {
  width: 100%;
  height: 4rem;
  margin-bottom: 1.5rem;
}
.list {
  overflow: auto;
  width: 100%;
  height: 5.5rem;
}
.list::-webkit-scrollbar {
  display: none;
}
.list ul {
  white-space: nowrap; // 强制不换行
}
li {
  display: inline-block;
  position: relative;
  width: 4rem;
  height: 3rem;
  margin-top: 0.4rem;
  margin-bottom: 0.7rem;;
  margin-left: 0.9rem;
  margin-right: 0.9rem;
  background-color: #ffffff;
  text-align: center;
  line-height: 2.5rem;
  border-radius: 40% 40% 40% 40%;
  opacity: 0.7;
  span {
    display: inline-block;
    position: absolute;
    margin-top: 0.6rem;
    top: 2rem;
    left: 1.2rem;
    font-size: 0.8rem;
  }
  img {
    display: inline-block;
    position: absolute;
    width: 75%;
    height: 75%;
    margin-left: -1.5rem;
    margin-top: 0.5rem;
/*     margin-top: 0.6rem;
    top: 2rem;
    left: 1rem; */
  }
}
/* li:nth-child(1) {
  background-color: #59dfad;
}
li:nth-child(2) {
  background-color: #759cfb;
}
li:nth-child(3) {
  background-color: #7d65f9;
}
li:nth-child(4) {
  background-color: #725bf4;
}
li:nth-child(5) {
  background-color: #ff667b;
}
li:nth-child(6) {
  background-color: #725bf4;
}
li:nth-child(7) {
  background-color: #836cf7;
}
li:nth-child(8) {
  background-color: #f84c63;
} */
</style>
